package events 
{
	import entities.Entity;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Gareth Williams
	 */
	public class Alert extends Event 
	{
		public static var ENTITY_SIGHTED:String = "player was sighted";
		public var dispatcher:Entity;
		public function Alert(type:String, dispatcher:Entity, bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			super(type, bubbles, cancelable);
			this.dispatcher = dispatcher;
		}
		public override function clone():Event 
		{ 
			return new Alert(type, dispatcher, bubbles, cancelable);
		} 
		public override function toString():String 
		{ 
			return formatToString("Alert", "dispatcher", "type", "bubbles", "cancelable", "eventPhase"); 
		}	
	}
}
